<html  xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8" />
    <script th:src="@{/static/js/jquery.js}"></script>
    <script th:src="@{/static/js/jquery.easing.1.3.js}"></script>
    <script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>

    <script th:inline="javascript">
        /*$(function(){
            var _ctx = [[${application.ctx}]];
            alert("Project ContextPath:"+_ctx);
            alert("路径:"+$("#ctx").val());
        });*/
        $(document).ready(function()
        {
            console.log("asdasd");
            /*var obj = new WxLogin
            ({
                id:"login_container",//div的id
                appid: "wxa24be133e4bba3ff",
                scope: "snsapi_login",//写死
                redirect_uri:encodeURI("http://nyt5vv.natappfree.cc/clientWechat/success") ,
                state: "",
                style: "black",//二维码黑白风格
               // href: "https://某个域名下的css文件"
            });*/
            var obj = new WxLogin({

                id:"login_container",    //div的id

                appid: "wxa24be133e4bba3ff",

                scope: "snsapi_userinfo",

                redirect_uri: encodeURI("http://nyt5vv.natappfree.cc/clientWechat/success"),        //回调地址

                state: "",　　　　　　　　　//参数，可带可不带

                style: "black",　　　　　　　　　//样式  提供"black"、"white"可选，默认为黑色文字描述

               // href: ""                 //自定义样式链接，第三方可根据实际需求覆盖默认样式。

            });
        });
    </script>
    <title>Spring MVC + Thymeleaf Example</title>
</head>
<body>
<div id="login_container"></div>
<!-- Project ContextPath -->


</body>
</html>